How do Module Workers work (type: 'module')? What advantages do they offer over classic workers?
Module workers use type: 'module', enabling ES module imports (import syntax) and sharing modules. They also default to strict mode and have better scoping.